package com.lin.mapper;

import com.lin.pojo.Books;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BookMapper {
    int insertBook(Books books);

    int deleteBook(int id);

    int updateBook(Books books);

    List<Books> selectAll();

    Books selectById(int id);

    List<Books> selectBookByName(String bookName);
}
